<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div></div>
    <div></div>
    <div></div>
    <script>
        var div=document.querySelectorAll('div')
        var stt = location.search.substr(1).split('&')
        console.log(stt);
        var tt = {}
        for (var i = 0; i < stt.length; i++) {
            var k = stt[i].split("=")[0]
            var v = stt[i].split("=")[1]
            console.log(k);
            tt[k] = v;
        }
        console.log(tt);
       
       div[0].innerHTML=tt.Uname+'   欢迎你'
    //    div[1].innerHTML=tt.pass+'   欢迎你'
    //    div[2].innerHTML=tt.kk+'   欢迎你'
    </script>
</body>

</html>